package com.maduar.mybatis.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * Description:
 *
 * @author maduar maduar@163.com
 * @date 2021-04-10 19:31
 */
@Data
@TableName(value = "role")
public class RoleEntity {

    @TableId(value = "ro_id", type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long roleId;

    private String roleName;
}
